package tum0r.utils;

import java.util.ArrayList;

/**
 * 工程: SQLTool<br>
 * 包: tum0r.util<br>
 * 创建者: tum0r<br>
 * 创建时间: 2020/10/3 11:11<br>
 * <br>
 */
public class PageModel<T> {
    public ArrayList<T> model = new ArrayList<>();
    public int pageSize;
    public int index;
    public int count;
    public int allPage;

    public void calc() {
        allPage = count / pageSize;
        allPage += count % pageSize == 0 ? 0 : 1;
    }
}
